# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class LectureItem(scrapy.Item):  # 讲座信息的Item
    sequence = scrapy.Field()  # 讲座序号
    author = scrapy.Field()
    date = scrapy.Field()
    title = scrapy.Field()
    details = scrapy.Field()  # 讲座的具体内容
    image_names = scrapy.Field()
    image_urls = scrapy.Field()
    image_ids = scrapy.Field()
    image_guid = scrapy.Field()


class Categorys(scrapy.Item):
    category = scrapy.Field()


class ForumsItem(scrapy.Item):
    category = scrapy.Field()  # 大类别
    chinese_name = scrapy.Field()   # 中文描述
    sub_category = scrapy.Field()  # 小类别
    forum_name = scrapy.Field()  # 讨论区名称
    master = scrapy.Field()  # 版主
    master_link = scrapy.Field()    # 版主信息的链接
    article_num = scrapy.Field()  # 文章数
    popularity = scrapy.Field()  # 人气


class ArticleItem(scrapy.Item):
    header = scrapy.Field()
    sequence = scrapy.Field()
    author = scrapy.Field()
    date = scrapy.Field()
    title = scrapy.Field()
    detail = scrapy.Field()
    replys = scrapy.Field()
    image_names = scrapy.Field()
    image_urls = scrapy.Field()
    image_ids = scrapy.Field()
    image_guid = scrapy.Field()


class ReplyItem(scrapy.Item):
    sequence = scrapy.Field()
    header = scrapy.Field()
    title = scrapy.Field()
    author = scrapy.Field()
    date = scrapy.Field()
    detail = scrapy.Field()
    parent_sequence = scrapy.Field()
    image_names = scrapy.Field()
    image_urls = scrapy.Field()
    image_ids = scrapy.Field()
    image_guid = scrapy.Field()


class Picture(scrapy.Item):
    name = scrapy.Field()
    url = scrapy.Field()
    img = scrapy.Field()